package com.xunwulian.base.constant;

import com.xunwulian.base.util.EnumType;

public enum CommonErrorCode implements EnumType<CommonErrorCode, String, String> {

    SUCCESS("0000", "交易成功"),

    E_CARDINFO_NOT_EXISTS("6001", "卡号不存在"),
    E_CARDINFO_AUTHOR("6002", "卡号不在用户名下"),
    E_SMS_FRENQUECE("6003", "您在1分钟内发送过相同短信，请耐心等待应答！"),
    E_SMS_API("6004", "调用发送接口失败，请稍后重试！"),

    E_CLIENT_NOT_INITIALIZED("4001", "客户端没有初始化"),
    E_CMEB_DUBOO("4002", "查询接口调用失败！");


    public String type;
    public String desc;

    CommonErrorCode(String type, String desc) {
        this.type = type;
        this.desc = desc;
    }

    @Override
    public String getType() {
        return this.type;
    }

    @Override
    public String getDesc() {
        return this.desc;
    }


}
